﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Controls_News_RSS : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            XmlDataSource xmlNews = new XmlDataSource();
            xmlNews.DataFile = "http://vnexpress.net/rss/gl/khoa-hoc.rss";
            xmlNews.XPath = "/rss/channel/item";
            xmlNews.DataBind();

            listView.DataSource = xmlNews;
            listView.DataBind();
        }
        catch
        {
        }
    }
}